home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_shw_arenacue.cog < prev    next >
Text File  |  1999-11-15  |  1KB  |  54 lines

  1. # Jones 3D Cog Script
  2. #
  3. # gen_Door.cog
  4. #
  5. # Generic Door Script
  6. #
  7. # [IS]
  8. #
  9. # (C) 1997 LucasArts Entertainment Co. All Rights Reserved
  10. # ========================================================================================
  11.  
  12. symbols
  13.         
  14.     message    startup    
  15.     message    entered    
  16.         
  17.     #    ACTORS
  18.     thing        player          local                  
  19.  
  20.     #    TRIGGER
  21.     sector  cueArea                
  22.        
  23.     
  24.     #MUSIC AND VOICE LINES
  25.     sound   dangercue=mus_gen_danger2.wav        local
  26.     
  27.     #    VARS
  28.     int     cued=0        local
  29.     
  30.  
  31. end
  32.  
  33. # ========================================================================================
  34.  
  35. code
  36. startup:
  37.         
  38.     player = GetLocalPlayerThing();
  39.     return;
  40.  
  41. # ........................................................................................
  42. entered:
  43.                 
  44.     If ((GetSenderRef() == cueArea) && (GetSourceRef() == player) && (cued == 0))
  45.         {
  46.         cued = 1;
  47.         PlaySoundLocal(dangercue, 1.0, 0.0, 0x0, 0);
  48.         }
  49.     return;
  50. # ........................................................................................
  51.  
  52. end
  53.  
  54.